Firebase storage Rotation
難しい。
android - Firebase Storage image gets rotated - Stack Overflow
Why does an image captured using camera intent gets rotated on some devices on Android? - Stack Overflow
Exif
情報を取り出すが、使えない(最初の情報が不正確?)ケースもある。
Androidで、Exifを見て、画像を回転させる - Qiita
It's not posible to use ExifInterface to get the orientation because an Android OS issue:
https://code.google.com/p/android/issues/detail?id=19268
Why does an image captured using camera intent gets rotated on some devices on Android? - Stack Overflow
より
SENSOR_ORIENTATION
CameraCharacteristics | Android Developers
#todo